import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'
import Login from '../views/login/login.vue'

Vue.use(VueRouter)

const routes = [

  {
    path: '/homeview',
    name: 'HomeView',
    // redirect: '/shouye',  
    component: HomeView,
    children: [
      {
        // 首页
        path: '/shouye',
        name: 'shouye',
        component: () => import('../views/home/index.vue')
      },

      {
        path: '/shujulist',
        name: '数据列表',
        component: () => import('../views/ShiShIShuJu/ShuJuList')
      },
      {
        path: '/aaa',
        name: 'aaa',
        component: () => import('../views/ShiShIShuJu/aaa')
      },
      {
        path: '/zhuzhuangtuzhanshi',
        name: '柱状图展示',
        component: () => import('../views/ShiShIShuJu/ZhuZhuangTuZhanShi')
      },

      {
        path: '/jinduchiguanli',
        name: '进度尺管理',
        component: () => import('../views/ShiShIShuJu/JinDuChiGuanLi')
      },
      {
        path: '/baojingshujuchaxun',
        name: '报警数据查询',
        component: () => import('../views/LiShiShuJuChaXun/BaojingShuJuChaXun')
      },
      {
        path: '/lishishujuchaun',
        name: '历史数据查询',
        component: () => import('../views/LiShiShuJuChaXun/LiShiShuJuChaXun')
      },
      
      {
        path: '/ri_one',
        name: '日报表',
        component: () => import('../views/BaoBiaoChaXun/Ri_one')
      },
      {
        path: '/yue_one',
        name: '日报表',
        component: () => import('../views/BaoBiaoChaXun/Yue_one')
      },
      {
        path: '/zhou_one',
        name: '日报表',
        component: () => import('../views/BaoBiaoChaXun/Zhou_one')
      },
      {
        path: '/ri',
        name: '日报表',
        component: () => import('../views/BaoBiaoChaXun/Ri')
      },
      {
        path: '/yue',
        name: '月报表',
        component: () => import('../views/BaoBiaoChaXun/Yue')
      },
      {
        path: '/zhou',
        name: '周报表',
        component: () => import('../views/BaoBiaoChaXun/Zhou')
      },
      {
        path: '/cedianpeizhi',
        name: '测点配置',
        component: () => import('../views/SheBeiPeiZhi/CeDianPeiZhi')
      },
      {
        path: '/anzhuangjidian',
        name: '安装基点',
        component: () => import('../views/SheBeiPeiZhi/AnZhuangJiDianPeiZhi')
      },
      {
        path: '/chuanganqileibiao',
        name: '传感器列表',
        component: () => import('../views/SheBeiPeiZhi/ChuanGanQiLieBiao')
      },
      {
        path: '/chuanganqileixingpeizhi',
        name: '传感器类型配置',
        component: () => import('../views/SheBeiPeiZhi/ChuanGanQiTypePeiZhi')
      },
      {
        path: '/fenzhanpeizhi',
        name: '分站配置',
        component: () => import('../views/SheBeiPeiZhi/FenZhanPeiZhi')
      },
      {
        path: '/gongzuomianpeizhi',
        name: '工作面配置',
        component: () => import('../views/SheBeiPeiZhi/GongZuoMianPeiZhi')
      },
      {
        path: '/shujuduibi',
        name: '数据对比',
        component: () => import('../views/ShuJuDuBi/ShuJuDuBi')
      },
      {
        path: '/xitongpeizhi',
        name: '系统配置',
        component: () => import('../views/XiTongGuanLi/XiTongPeiZhi')
      },





    ]
  },
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/login',
    name: 'login',
    component: Login
  },
  // {
  //   path: '/404',
  //   name: '404'
  // }
]

const router = new VueRouter({
  routes,
  mode: 'history'
})

export default router
